package com.rongji.dfish.demo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DfishView entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DFISH_VIEW")
public class DfishView implements java.io.Serializable {

	// Fields

	private String viewId;
	private String viewName;
	private Date createTime;
	private Date updateTime;
	private String viewCreator;
	private String viewRemark;
	private String viewStatus;
	private Long viewVersion;
	private String viewDir;
	private Long viewOrder;
	private String viewOrigin;
	private String category;

	// Constructors

	/** default constructor */
	public DfishView() {
	}

	/** minimal constructor */
	public DfishView(String viewId) {
		this.viewId = viewId;
	}

	/** full constructor */
	public DfishView(String viewId, String viewName, Date createTime, Date updateTime, String viewCreator,
	        String viewRemark, String viewStatus, Long viewVersion, String viewDir, Long viewOrder,
	        String viewOrigin, String category) {
		this.viewId = viewId;
		this.viewName = viewName;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.viewCreator = viewCreator;
		this.viewRemark = viewRemark;
		this.viewStatus = viewStatus;
		this.viewVersion = viewVersion;
		this.viewDir = viewDir;
		this.viewOrder = viewOrder;
		this.viewOrigin = viewOrigin;
		this.category = category;
	}

	// Property accessors
	@Id
	@Column(name = "VIEW_ID", unique = true, nullable = false, length = 16)
	public String getViewId() {
		return this.viewId;
	}

	public void setViewId(String viewId) {
		this.viewId = viewId;
	}

	@Column(name = "VIEW_NAME")
	public String getViewName() {
		return this.viewName;
	}

	public void setViewName(String viewName) {
		this.viewName = viewName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 7)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "VIEW_CREATOR")
	public String getViewCreator() {
		return this.viewCreator;
	}

	public void setViewCreator(String viewCreator) {
		this.viewCreator = viewCreator;
	}

	@Column(name = "VIEW_REMARK", length = 1000)
	public String getViewRemark() {
		return this.viewRemark;
	}

	public void setViewRemark(String viewRemark) {
		this.viewRemark = viewRemark;
	}

	@Column(name = "VIEW_STATUS", length = 1)
	public String getViewStatus() {
		return this.viewStatus;
	}

	public void setViewStatus(String viewStatus) {
		this.viewStatus = viewStatus;
	}

	@Column(name = "VIEW_VERSION", scale = 0)
	public Long getViewVersion() {
		return this.viewVersion;
	}

	public void setViewVersion(Long viewVersion) {
		this.viewVersion = viewVersion;
	}

	@Column(name = "VIEW_DIR", length = 16)
	public String getViewDir() {
		return this.viewDir;
	}

	public void setViewDir(String viewDir) {
		this.viewDir = viewDir;
	}

	@Column(name = "VIEW_ORDER", scale = 0)
	public Long getViewOrder() {
		return this.viewOrder;
	}

	public void setViewOrder(Long viewOrder) {
		this.viewOrder = viewOrder;
	}

	@Column(name = "VIEW_ORIGIN", length = 16)
	public String getViewOrigin() {
		return this.viewOrigin;
	}

	public void setViewOrigin(String viewOrigin) {
		this.viewOrigin = viewOrigin;
	}

	@Column(name = "CATEGORY", length = 1)
	public String getCategory() {
		return this.category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

}